import cn.hutool.core.util.IdUtil;

public class test {
    public static void main(String[] args) {
        Thread t1 = new Thread(()->{
            for (int i = 0; i < 50; i++) {
                System.out.println("t1 = " + IdUtil.getSnowflake(1,1).nextIdStr());

            }
        });

        Thread t2 = new Thread(()->{
            for (int i = 0; i < 50; i++) {
                System.out.println("t2 = " + IdUtil.getSnowflake(1,1).nextIdStr());
            }
        });

        t1.start();
        t2.start();
    }
}
